.clock-wrapper {
  @include full-flex;
  display: flex;
  flex-direction: column;
  padding-bottom: 60px;
  position: relative;
  background-color: $bg-gray;
  .punch-wrapper {
    position: relative;
    width: 100vw;
    height: calc(100vh - 60px);
    background-color: $bg-gray;
    .calendar-wrapper {
      background-color: $white;
      padding-bottom: 10px;
    }
    .punch-back {
      position: absolute;
      width: 100%;
      height: 100%;
      z-index: 0;
      .punch-back-image {
        width: 100%;
      }
    }
    .punch-content {
      position: relative;
      z-index: 1;
      @include full;
      display: flex;
      flex-direction: column;
      .punch-content-tab {
        height: 50px;
        display: flex;
        align-items: center;
        padding: 0 20px;
        .punch-content-tab-item {
          width: 94px;
          height: 32px;
          font-size: 14px;
          font-weight: 500;
          line-height: 32px;
          text-align: center;
          margin-right: 12px;
          color: #fff;
          &.selected {
            color: $theme;
            background: rgba(255, 255, 255, 1);
            border-radius: 16px;
          }
        }
      }
    }
    .check-slot-content {
      height: 180px;
      padding-top: 20px;
      text-align: center;
      img {
        width: 60px;
        height: 60px;
      }
      .font {
        margin: 10px 0;
        font-size: 18px;
        font-weight: bold;
      }
      .time {
        color: #ff7085;
      }
    }
    .confirm-button {
      height: 50px;
      display: flex;
      border-top: 1px solid #e8e8e8;
      font-size: 16px;
      color: #606266;
      view {
        width: 50%;
        line-height: 48px;
        text-align: center;
        &:nth-child(1) {
          border-right: 1px solid #e8e8e8;
        }
        button {
          border: 0;
          padding: 0;
          line-height: 50px;
          font-size: 16px;
          color: $uni-color-primary;
        }
      }
    }
    .content {
      padding: 24px;
      font-size: 14px;
      text-align: center;
      color: #606266;
    }
  }
  .punch-block-wrapper {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    padding: 0 20px;
    .punch-block {
      background-color: $white;
      border-top-right-radius: 16px;
      border-top-left-radius: 16px;
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      padding-bottom: 10px;
      margin-bottom: 16px;
      overflow: hidden;
      .punch-status {
        img {
          width: 168px;
          height: 168px;
          display: block;
          margin: 50px auto 30px;
        }
        .tip {
          font-size: 20px;
          font-weight: 500;
          color: rgba(51, 51, 51, 1);
          line-height: 28px;
        }
      }
    }
    .punch-result {
      position: relative;
      background-color: $white;
      border-top-right-radius: 16px;
      border-top-left-radius: 16px;
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      // justify-content: space-between;
      padding: 30px 0 20px;
      overflow: hidden;
    }
    .tip-gray {
      width: 162px;
      font-size: 18px;
      font-weight: 400;
      color: rgba(192, 192, 192, 1);
      line-height: 25px;
      text-align: center;
    }
  }
  .punch-title {
    font-size: 20px;
    font-weight: 500;
    color: $fc1;
    line-height: 28px;
    padding-top: 64px;
    text-align: center;
  }
  .punch-tip {
    font-size: 16px;
    font-weight: 500;
    color: $fc2;
    line-height: 22px;
    text-align: center;
    position: absolute;
    bottom: 40px;
  }
  .punch-circle {
    position: relative;
    width: 136px;
    height: 136px;
    background-color: $theme;
    border-radius: 50%;
    margin: 80px auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: $white;
    font-weight: 500;
    .punch-circle-text {
      z-index: 1;
      text-align: center;
      font-size: 36px;
      line-height: 50px;
      &.small {
        font-size: 18px;
        line-height: 26px;
      }
    }
    &:before {
      position: absolute;
      width: 160px;
      height: 160px;
      content: "";
      background-color: $theme-half;
      border-radius: 50%;
      z-index: 0;
    }
  }
  .punch-map-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 60%;
    .punch-map {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
    }
  }
  .punch-position {
    font-size: 16px;
    font-weight: 400;
    color: $fc1;
    line-height: 22px;
    padding: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .punch-desc {
    width: 300px;
    border: 1px solid $border;
    border-left: none;
    border-right: none;
    margin: 0 auto;
    padding: 10px 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    position: relative;
    box-sizing: border-box;
    .punch-desc-label {
      flex: 1;
      color: $fc2;
    }
    .punch-desc-content {
      flex: 1;
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
      color: $fc1;
      overflow: hidden;
      .punch-desc-content-text {
        flex: 1;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
      }
    }
    .punch-desc-icon {
      width: 20px;
      text-align: right;
    }
  }
  .punch-result-image {
    width: 136px;
    height: 136px;
    margin-top: 48px;
  }
  .punch-result-text {
    font-size: 20px;
    font-weight: 500;
    color: $fc1;
    line-height: 28px;
    text-align: center;
    &.small {
      font-size: 16px;
      margin-top: 2px;
      font-weight: 400;
      line-height: 22px;
    }
  }
  .punch-result-close {
    position: absolute;
    top: -5px;
    right: 10px;
  }
  .punch-result-detail {
    border-top: 1px solid $border;
    border-left: none;
    border-right: none;
    margin: 48px auto;
    width: 80%;
    &.bottom-border {
      border-bottom: 1px solid $border;
    }
    .punch-result-detail-item {
      min-height: 40px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 16px;
      line-height: 20px;
      font-weight: 400;
      &.column {
        border-top: 1px solid $border;
        flex-direction: column;
        align-items: flex-start;
      }
      .punch-result-detail-item-label {
        color: $fc2;
      }
      .punch-result-detail-item-text {
        width: 80%;
        text-align: right;
        color: $fc1;
        padding: 8px 0;
        &.abnormal {
          color: $red;
        }
      }
      span:nth-of-type(1) {
        color: rgba(192, 192, 192, 1);
      }
      span:nth-of-type(2) {
        color: rgba(51, 51, 51, 1);
      }
    }
  }
}

.punch-instruction-wrapper {
  position: relative;
  @include full-flex;
  display: flex;
  flex-direction: column;
  padding-bottom: 90px;
  background-color: $bg-gray;
  .punch-instruction {
    flex: 1;
    padding: 20px;
    .punch-instruction-textarea {
      padding: 15px;
      width: 100%;
      min-height: 100px;
      background-color: $white;
      font-size: 14px;
      line-height: 20px;
      color: $fc1;
      box-sizing: border-box;
    }
    .punch-instruction-placeholder {
      font-size: 14px;
      line-height: 20px;
      color: $placeholder;
    }
  }
  .punch-instruction-button {
    @include button;
    position: absolute;
    // width: calc();
    height: 50px;
    background: $theme;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    color: $white;
    line-height: 50px;
    bottom: 20px;
    left: 20px;
    right: 20px;
  }
}

.punch-list {
  .punch-list-title {
    position: relative;
    padding: 10px 20px;
    padding-left: 35px;
    line-height: 24px;
    font-size: 16px;
    font-weight: 500;
    color: $theme;
    margin-top: 10px;
    &:before {
      content: "";
      position: absolute;
      top: 13px;
      bottom: 13px;
      left: 20px;
      width: 2px;
      background-color: $theme;
    }
  }
  .punch-list-item {
    box-sizing: border-box;
    background-color: $white;
    padding: 0 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    .punch-list-item-right {
      padding: 10px 0;
      flex: 1;
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
      &.border {
        border-top: 1px solid $border;
      }
    }
    .punch-list-item-time {
      font-size: 16px;
      font-weight: 500;
      color: $fc1;
      line-height: 24px;
      padding-right: 10px;
      box-sizing: border-box;
    }
    .punch-list-item-text {
      font-size: 16px;
      font-weight: 500;
      color: $fc1;
      line-height: 24px;
      margin-top: 4px;
      &.small {
        font-size: 14px;
        line-height: 20px;
        font-weight: normal;
      }
      &.abnormal {
        color: $red;
      }
      &.gray {
        color: $fc2;
      }
    }
    .punch-list-item-icon {
      color: $fc2;
    }
  }
}

.punch-list-none {
  padding: 20px !important;
  font-size: 16px;
  color: $fc2;
  text-align: center;
}

.punch-detail-wrapper {
  position: relative;
  @include full-flex;
  background-color: $bg-gray;
  .punch-detail {
    width: 100%;
    display: flex;
    flex-direction: row;
    padding: 10px 0;
    background-color: $white;
    margin-top: 10px;
    .punch-detail-label {
      font-size: 14px;
      color: $fc2;
      width: 90px;
      padding-left: 20px;
      box-sizing: border-box;
    }
    .punch-detail-content {
      display: flex;
      flex-direction: column;
      flex: 1;
      width: 0;
      padding-right: 20px;
      font-size: 14px;
      color: $fc1;
    }
    .punch-detail-map {
      width: 100%;
      margin-top: 10px;
    }
  }
}
